package cn.edu.kzjsxy.graduationproject.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生缺勤记录表
 * </p>
 *
 * @author chén jiā jùn
 * @since 2024-04-14
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("student_absences")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="StudentAbsences对象", description="学生缺勤记录表")
public class StudentAbsences implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "缺勤记录ID")
    @TableId(value = "absence_id", type = IdType.AUTO)
    private Integer absenceId;

    @ApiModelProperty(value = "学生ID，外键参照学生信息表students")
    @TableField("student_id")
    private String studentId;

    @ApiModelProperty(value = "缺勤日期")
    @TableField("absence_date")
    private LocalDateTime absenceDate;

    @ApiModelProperty(value = "缺勤类型 例如：病假，事假，晚归，夜不归宿")
    @TableField("absence_type")
    private String absenceType;

    @ApiModelProperty(value = "备注信息（如原因、情况说明等）")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "记录创建时间")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "记录更新时间")
    @TableField("updated_at")
    private LocalDateTime updatedAt;


}
